import com.hxh.controller.StudentAdviceController;
import com.hxh.controller.StudentController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/7/2 10:11
 */
public class App {

    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");
        StudentController studentController =
                context.getBean("studentController", StudentController.class);
        StudentAdviceController studentAdviceController =
                context.getBean("studentAdviceController", StudentAdviceController.class);
        studentController.printStudent();
        studentAdviceController.printStudent();
    }
}
